
    /* 自定义CSS样式 */
body {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    color: #222;
}

.history-container {
    display: flex;
    max-width: 1200px;
    margin: 20px auto;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.left-sidebar {
    width: 200px;
    padding: 20px;
    border-right: 1px solid #e7e7e7;
}

.history-content {
    flex: 1;
    padding: 20px;
}

.filter-tabs {
    display: flex;
    border-bottom: 1px solid #e7e7e7;
    margin-bottom: 15px;
}

.filter-tab {
    padding: 8px 15px;
    margin-right: 20px;
    cursor: pointer;
    font-size: 14px;
}

.filter-tab.active {
    color: #00a1d6;
    border-bottom: 2px solid #00a1d6;
}

.search-bar {
    display: flex;
    margin-bottom: 15px;
}

.search-input {
    flex: 1;
    margin-right: 10px;
}

.clear-history {
    color: #00a1d6;
    cursor: pointer;
    font-size: 13px;
    line-height: 36px;
}

.batch-manage {
    color: #00a1d6;
    cursor: pointer;
    font-size: 13px;
    margin-left: 10px;
    line-height: 36px;
}

.history-date {
    font-size: 14px;
    color: #999;
    margin: 15px 0;
    display: flex;
    align-items: center;
}

.history-date::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 16px;
    background-color: #00a1d6;
    margin-right: 8px;
}

.history-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.history-item {
    cursor: pointer;
}

.video-cover {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 比例 */
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.video-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: rgba(0, 0, 0, 0.2);
}

.progress {
    height: 100%;
    background-color: #00a1d6;
    width: 80%; /* 示例进度 */
}

.video-info {
    margin-top: 8px;
}

.video-title {
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 40px;
}

.video-up {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.video-time {
    font-size: 12px;
    color: #999;
    margin-top: 3px;
}

.batch-actions {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.delete-btn {
    color: #00a1d6;
    cursor: pointer;
    font-size: 13px;
    margin-left: 10px;
}

.video-checkbox {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 16px;
    height: 16px;
    border: 1px solid #fff;
    border-radius: 2px;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
    cursor: pointer;
}

.video-checkbox.checked {
    background-color: #00a1d6;
    border-color: #00a1d6;
}

.video-checkbox.checked::after {
    content: "✓";
    color: white;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cancel-batch {
    color: #999;
    cursor: pointer;
    font-size: 13px;
    margin-left: 10px;
}

.cancel-batch:hover {
    color: #666;
}
